<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:f="http://xmlns.jcp.org/jsf/core">
    
    <f:view>
        <h:head>
        </h:head>
        
        <h:body>
            <ui:composition template="templates/mainPageLayout.xhtml">
            Registration
             <ui:define name="activebody"  >
                 <div class="search" align="center" >
                    <h:form>
                        Welcome to our website<br/><br/>
                        E-mail: <h:inputText id="txtEmail" class="textInput" required="true" value="#{userbean.email}"/>
                        
                        <br/>
                        Password: <h:inputSecret id="txtPass" class="textInput" value="#{userbean.pass}" required="true"/><br/>
              
                        <br/>
                        <h:commandButton class="vote" action="#{userbean.login}" value="Submit"/>
                        <br/><br/>
                        Or <a href="Register.xhtml">register </a>if you have no account
                    </h:form>
                </div>
             </ui:define>
            </ui:composition>
        </h:body>
    </f:view>
</html>